/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="TIPOSFATURAMENTOS")
public class TiposFaturamentosProteu implements Serializable{

    @Id
    @Column(name="TIF_ST_CODIGO")
    private String tifStCodigo;
    @Column(name="TIF_ST_DESCRICAO")
    private String tifStDescricao;

    public String getTifStCodigo() {
        return tifStCodigo;
    }

    public void setTifStCodigo(String tifStCodigo) {
        this.tifStCodigo = tifStCodigo;
    }

    public String getTifStDescricao() {
        return tifStDescricao;
    }

    public void setTifStDescricao(String tifStDescricao) {
        this.tifStDescricao = tifStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final TiposFaturamentosProteu other = (TiposFaturamentosProteu) obj;
        if ((this.tifStCodigo == null) ? (other.tifStCodigo != null) : !this.tifStCodigo.equals(other.tifStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 37 * hash + (this.tifStCodigo != null ? this.tifStCodigo.hashCode() : 0);
        return hash;
    }



}
